package com.lthlearn.pojo;

import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: 2942733239@qq.com
 * @date: 2024/11/1 9:20
 * @description: com.lthlearn.pojo
 * @version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@RequiredArgsConstructor
public class Result implements Serializable {

    @Serial
    private static final long serialVersionUID = 3L;

    // 状态码.  200-ok  404-找不到资源  500-server error
    @NonNull
    private String code;

    // 备注此次的动作是做什么的,比如查询用户信息
    @NonNull
    private String msg;

    // 返回给前端的对象
    private Object data;


}
